local Symbol = @@src(symbol)
return Class {
	init = function (self, utypename)
		self.utypes = _units(utypename)
		self.name = utypename
		self.units = self.utypes.units
		local x = self.utypes.symbol * 8
		self.symbol = Symbol(x)
	end,
	
	get_info = function (self, uname)
		lume(self.units):each(function (ul)
			local data = ul[2]
			local name = ul[1]
			if name == uname then return data end 
		end)
	end,
	
	list_units = function (self)
		local result = {}
		lume(self.units):each(function (ul)
			lume(result):push(ul[2][1])
		end)
		return result
	end,
}
